package com.woniuxy.social.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 动态表
 * </p>
 *
 * @author John_Yeung
 * @since 2020-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ACTION")
@ApiModel(value="Action对象", description="动态表")
@KeySequence("SEQ_ACTION")
@NoArgsConstructor
@AllArgsConstructor
public class Action implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "动态表主键")
    @TableId(value ="ACTION_ID",type = IdType.INPUT)
    private Integer actionId;

    @ApiModelProperty(value = "所属的用户id")
    @TableField("COMMUNITY_ID")
    private Integer communityId;

    @ApiModelProperty(value = "进行的操作")
    @TableField("OPERATE")
    private String operate;

    @ApiModelProperty(value = "操作动态的地址")
    @TableField("URL")
    private String url;

    @ApiModelProperty(value = "操作动态的时间")
    @TableField("CREATE_DATE")
    private LocalDateTime createDate;


}
